package com.zlp.springcloud.controller;

import com.zlp.springcloud.entity.CommonResult;
import com.zlp.springcloud.entity.User;
import com.zlp.springcloud.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhulaiping
 * @Date: 2021/7/13 16:26
 */
@RestController
public class FeignController {

    @Autowired
    FeignService feignService;

    @GetMapping(value = "/consumer/user/get/{id}")
    public CommonResult<User> getPaymentById(@PathVariable("id") Long id){
        return feignService.getPaymentById(id);
    }

}
